package Bean;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张
 * Date: 2025-02-26
 * Time: 18:58
 */
//对应数据库ticket_change_audit(懒得大这么长了)
public class Audit {
    private String auditId;
    private String ticketId;
    private String userId;
    private String oldFlightId;//原本的航班号
    private String newFlightId;//新的航班号
    private String requestedSeat;//新的座位号
    private LocalDateTime applyTime;//提交时间
    private String auditorId;
    private AuditStatus auditStatus;

    public enum AuditStatus{
        待审核,已通过,已拒绝
    }

    public String getAuditId() {
        return auditId;
    }

    public void setAuditId(String auditId) {
        this.auditId = auditId;
    }

    public String getTicketId() {
        return ticketId;
    }

    public void setTicketId(String ticketId) {
        this.ticketId = ticketId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getOldFlightId() {
        return oldFlightId;
    }

    public void setOldFlightId(String oldFlightId) {
        this.oldFlightId = oldFlightId;
    }

    public String getNewFlightId() {
        return newFlightId;
    }

    public void setNewFlightId(String newFlightId) {
        this.newFlightId = newFlightId;
    }

    public String getRequestedSeat() {
        return requestedSeat;
    }

    public void setRequestedSeat(String requestedSeat) {
        this.requestedSeat = requestedSeat;
    }

    public LocalDateTime getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(LocalDateTime applyTime) {
        this.applyTime = applyTime;
    }

    public String getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(String auditorId) {
        this.auditorId = auditorId;
    }

    public AuditStatus getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(AuditStatus auditStatus) {
        this.auditStatus = auditStatus;
    }

    @Override
    public String toString() {
        return "Audit{" +
                "auditId='" + auditId + '\'' +
                ", ticketId='" + ticketId + '\'' +
                ", userId='" + userId + '\'' +
                ", oldFlightId='" + oldFlightId + '\'' +
                ", newFlightId='" + newFlightId + '\'' +
                ", requestedSeat='" + requestedSeat + '\'' +
                ", applyTime=" + applyTime +
                ", auditorId='" + auditorId + '\'' +
                ", auditStatus='" + auditStatus + '\'' +
                '}';
    }
}
